package domain;

import java.util.List;

public class PageData<T> {
    private int totalCount;    //总记录数
    private int totalPage;     //总页码
    private List<T> PageData;  //每页数据
    private int currentPage;  //当前页码
    private int rows; //每页显示记录数

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getPageData() {
        return PageData;
    }

    public void setPageData(List<T> pageData) {
        PageData = pageData;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "PageData{" +
                "totalCount=" + totalCount +
                ", totalPage=" + totalPage +
                ", PageData=" + PageData +
                ", currentPage=" + currentPage +
                ", rows=" + rows +
                '}';
    }
}
